<template>
  <div>
    <navigationTitle></navigationTitle>
  </div>
</template>

<script>
import navigationTitle from "@/components/navigationTitle";

export default {
  data() {
    return {
      motto: "Hello World",
      userInfo: {}
    };
  },

  components: {
    navigationTitle
  },

  methods: {
    bindViewTap() {
      const url = "../logs/main";
      wx.navigateTo({ url });
    },
    getUserInfo() {
      // 调用登录接口
      wx.login({
        success: () => {
          wx.getUserInfo({
            success: res => {
              this.userInfo = res.userInfo;
            }
          });
        }
      });
    },
    clickHandle(msg, ev) {
      console.log("clickHandle:", msg, ev);
    }
  },

  onLoad() {
    let _this = this;
    console.log(this.$store)
  }
};
</script>

<style scoped lang="less">
</style>

<style lang="less">
page {
  background: #f5f5f5;
}
</style>
